/*
 * @(#) Article.java 2018年2月8日 下午5:29:02
 *
 * Copyright 2018 CIMIP, Inc. All rights reserved.
 * H-VISIONS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package cn.hc.share.entity;

import java.io.Serializable;
import java.sql.Timestamp;

public class ArticleMsg implements Serializable
{

	
	private static final long serialVersionUID = 1L;

	private String id;
	private String articleId;//文本id
	private String currentUser;//当前访问用户作者
	private Timestamp collectTime;//收藏时间
	private String collectState;//收藏状态  1.已收藏\0.未收藏
	private String usefullState;//有用状态 0.初始值\1.有用\2.无用
	private Timestamp lastModifyTime;//最后修改时间
	
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getArticleId()
	{
		return articleId;
	}
	public void setArticleId(String articleId)
	{
		this.articleId = articleId;
	}
	public String getCurrentUser()
	{
		return currentUser;
	}
	public void setCurrentUser(String currentUser)
	{
		this.currentUser = currentUser;
	}
	public Timestamp getCollectTime()
	{
		return collectTime;
	}
	public void setCollectTime(Timestamp collectTime)
	{
		this.collectTime = collectTime;
	}
	public String getCollectState()
	{
		return collectState;
	}
	public void setCollectState(String collectState)
	{
		this.collectState = collectState;
	}
	public String getUsefullState()
	{
		return usefullState;
	}
	public void setUsefullState(String usefullState)
	{
		this.usefullState = usefullState;
	}
	public Timestamp getLastModifyTime()
	{
		return lastModifyTime;
	}
	public void setLastModifyTime(Timestamp lastModifyTime)
	{
		this.lastModifyTime = lastModifyTime;
	}
	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ArticleMsg other = (ArticleMsg) obj;
		if (id == null)
		{
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	@Override
	public String toString()
	{
		return "ArticleMsg [id=" + id + ", articleId=" + articleId + ", currentUser=" + currentUser + ", collectTime="
				+ collectTime + ", collectState=" + collectState + ", usefullState=" + usefullState
				+ ", lastModifyTime=" + lastModifyTime + "]";
	}
	
}
